<template>
  <div class="location">
    <div class="white-bg topbar-bg" @click="goCityList()">
      <div class="city-entry">
        <div id="bdMapBox"></div>
        <span class="city-name">{{$store.state.city}}</span>
        <i class="city-entry-arrow"></i>
      </div>
    </div>
  </div>
</template>
<script>
export default {
  data: () => ({}),
  created () {},
  methods: {
    goCityList () {
      this.$router.push('/city-list')
    }
  }
}
</script>
<style lang="less" scoped>
.city-entry {
  padding-left: 15px;
  font-size: 15px;
  color: #666;
  display: -webkit-box;
  display: flex;
  -webkit-box-align: center;
  align-items: center;
  .city-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 70px;
    max-width: 19.2vw;
  }
  .city-entry-arrow {
    width: 0;
    height: 0;
    border: 4px solid #b0b0b0;
    border-left-color: transparent;
    border-right-color: transparent;
    border-bottom-color: transparent;
    display: inline-block;
    margin-left: 4px;
    margin-top: 5px;
  }
}
</style>
